from socket import *
from time import sleep

ADDR = ("127.0.0.1",8888)

sock = socket()
sock.connect(ADDR)

# 人为添加消息边界
# for i in range(5):
#     sock.send(b"hello/")

# 发送延迟
for i in range(5):
    sock.send(b"hello")
    sleep(0.1)

sock.send(b"##") # 让服务端退出

sock.close()
